import 'package:flutter/material.dart';

class ScrollDemo extends StatelessWidget {
  final _str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

  @override
  Widget build(BuildContext context) {
    
    return Scaffold(
      appBar: AppBar(
        title: Text('Scroll View例子'),
      ),
      body: Scrollbar(
        child: SingleChildScrollView(
          padding: EdgeInsets.all(16),
          child: Center(
            child: Column(
              children: _str.split("").map((c) => Text(c, textScaleFactor: 2,)).toList(),
            ),
          ),
        ),
      ),
    );
  }
}